package com.singfan.core.dao.database.impl;

import com.singfan.common.db.DaoBaseGeneric;
import com.singfan.core.dao.database.IShopAdditionalDao;
import com.singfan.core.dao.database.model.ShopAdditional;
import org.springframework.stereotype.Repository;

/**
 *
 * Author: hansonghe
 * Date: 2015-08-19 12:12
 * Desc:
 */
@Repository
public class ShopAdditionalDaoImpl extends DaoBaseGeneric<ShopAdditional> implements IShopAdditionalDao {
    @Override
    protected String getTableName(Object hashKey) {
        return tableNameBase;
    }

    @Override
    protected String getDatabaseId(Object hashKey) {
        return "app_1";
    }

    @Override
    public void create(ShopAdditional shopAdditional) {
        insert(null, shopAdditional);
    }
}
